Xceed Grid for WinForms v4.3 Documentation
Add(Object[]) Method


Xceed.Grid.v4.3 Assembly > Xceed.Editors Namespace > ComboBoxItemList Class > Add Method : Add(Object[]) Method
The values to add to the WinComboBox as a single ComboBoxItem.
Adds the specified values to the WinComboBox as a single ComboBoxItem.
Syntax
'Declaration
 
Public Overloads Sub Add( _
   ByVal ParamArray values() As Object _
) 
'Usage
 
Dim instance As ComboBoxItemList
Dim values() As Object
 
instance.Add(values)
public void Add( 
   params object[] values
)

Parameters

values
The values to add to the WinComboBox as a single ComboBoxItem.
Remarks

The number of values must match the number of columns (ColumnCount) contained in the WinComboBox control otherwise an exception will be thrown. If the WinComboBox does not contain columns, then the first "Add" will determine the number of columns that are created and added to the combobox. For example, if Add is called with "1", "2", "3", three columns with an System.ObjectP:Xceed.Editors.ColumnInfo.DataType. To provide the columns with a specific datatype, "typed" columns need to first be added to the combobox via the WinComboBox.Columns collection.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ComboBoxItemList Class
ComboBoxItemList Members
Overload List